<%@ page language="java"
	import="java.util.*,com.opensymphony.xwork2.util.*"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<!-- 疫苗猪舍查询 -->
<title>饲养查询</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>
<body>
	<s:property value="tip" />
	<s:form action="siyangchaxun">
		<s:textfield name="siyang_time" label="投喂时间" />
		<s:select name="zj_id" list="#session.zhujuanmap" listKey="key"
			listValue="value" label="猪圈号" />
		<s:textfield name="amount" label="总量" />
		<s:textfield name="siliao_type" label="饲料类型" />
		<s:select name="siliao_id" list="#session.laiyuanmap" listKey="key"
			listValue="value" label="饲料来源" />
		<s:select name="fz_person" list="#session.yuangongmap" listKey="key"
			listValue="value" label="负责人" />
		<s:submit value="查找" />
	</s:form>
	<s:form action="" method="post">		
		<tr>
			<td>投喂时间 </td>
			<td>猪圈号</td>
			<td>总量</td>
			<td>饲料类型</td>
			<td>饲料来源</td>
			<td>负责人</td>
		</tr>
		<s:iterator value="resultList" status="index" id="l">
			<s:if test="#index.odd == true">
				<tr style="background-color: #FFFF00">
			</s:if>
			<s:else>
				<tr>
			</s:else>
				<td><s:property value="#l.siyang_time" /></td>
				<td><s:property value="#l.ZJ_ID" /> </td>
				<td><s:property value="#l.amount" /></td>
				<td><s:property value="#l.siliao_type" /></td>
				<td><s:property value="#l.siliao_id" /></td>
				<td><s:property value="#l.FZ_Person" /></td>				
		</s:iterator>
	</s:form>	
</body>
</html>
